package com.lln.cjcx.service;

import com.lln.cjcx.pojo.MyOkHttpClient;
import com.lln.cjcx.pojo.SearchCondition;
import com.lln.cjcx.pojo.Term;
import com.lln.cjcx.pojo.grade.TermGrade;

import java.util.List;

/**
 * @author LiLinnan
 * @version 1.0
 * @date 2020/1/23 20:36
 */

public abstract class GradeSearchService extends Service_m implements Service_i{
	public GradeSearchService(){super();}
	/**
	 * 查询全部的学期
	 *
	 * @param myOkHttpClient 用户客户端
	 * @return 学期号列表
	 */
	abstract public List<Term> searchTerm(MyOkHttpClient myOkHttpClient);


	/**
	 * 查询本学期成绩
	 *
	 * @param myOkHttpClient 用户客户端
	 * @return 成绩列表
	 */
	abstract public List<TermGrade> searchCurrentTermGrade(MyOkHttpClient myOkHttpClient);


	/**
	 * 查询历年学期的成绩
	 *
	 * @param searchCondition 查询条件
	 * @param myOkHttpClient  用户客户端
	 * @return 成绩列表
	 */
	abstract public List<TermGrade> searchAllTermGrade(MyOkHttpClient myOkHttpClient, SearchCondition searchCondition);

	/**
	 * 查询不及格成绩
	 *
	 * @param myOkHttpClient 用户客户端
	 * @return 成绩列表
	 */
	abstract public List<TermGrade> searchFailTermGrade(MyOkHttpClient myOkHttpClient);
}
